Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 11.4
Two transformed groups of shapes, each with its own bounding box. |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Group { children [ # Translated Shape Transform { translation 20.0 0.0 0.0 bboxCenter 0.0 0.0 0.0 bboxSize 25.0 25.0 25.0 children [ DEF Widest Shape { appearance Appearance { material Material { diffuseColor 0.0 1.0 0.0 } } geometry Box { size 25.0 2.0 2.0 } }, DEF Tallest Shape { appearance Appearance { material Material { diffuseColor 1.0 1.0 0.0 } } geometry Box { size 2.0 25.0 2.0 } }, DEF Deepest Shape { appearance Appearance { material Material { diffuseColor 0.5 1.0 0.0 } } geometry Box { size 2.0 2.0 25.0 } } ] }, # Rotated Shape Transform { rotation 0.0 1.0 0.0 0.785 bboxCenter 0.0 0.0 0.0 bboxSize 25.0 25.0 25.0 children [ USE Widest, USE Tallest, USE Deepest ] } ] }